package com.sdy.po;

import java.util.Date;
import java.util.List;

public class Product {
    private String id;               //id
    private String unit;             //单位
    private String name;            //产品名
    private Date updateTime;        //更新时间
    private String summary;         //简介
    private String infomation;      //信息
    private Specification specification;    //规格
    private List<Specification> specificationList;  //规格列表

    public Product(String unit, String name, String summary, String infomation) {
        this.unit = unit;
        this.name = name;
        this.summary = summary;
        this.infomation = infomation;
    }

    public Product() {
    }

    public Product(String id, String unit, String name, Date updateTime, String summary, String infomation, Specification specification, List<Specification> specificationList) {
        this.id = id;
        this.unit = unit;
        this.name = name;
        this.updateTime = updateTime;
        this.summary = summary;
        this.infomation = infomation;
        this.specification = specification;
        this.specificationList = specificationList;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getInfomation() {
        return infomation;
    }

    public void setInfomation(String infomation) {
        this.infomation = infomation;
    }

    public Specification getSpecification() {
        return specification;
    }

    public void setSpecification(Specification specification) {
        this.specification = specification;
    }

    public List<Specification> getSpecificationList() {
        return specificationList;
    }

    public void setSpecificationList(List<Specification> specificationList) {
        this.specificationList = specificationList;
    }

    @Override
    public String toString() {
        return "Product{" +
                "id='" + id + '\'' +
                ", unit='" + unit + '\'' +
                ", name='" + name + '\'' +
                ", updateTime=" + updateTime +
                ", summary='" + summary + '\'' +
                ", infomation='" + infomation + '\'' +
                ", specification=" + specification +
                ", specificationList=" + specificationList +
                '}';
    }
}
